import { instance as request } from '../request'

/**
 * 批量创建标签
 * @param data
 * @returns
 */
export const createTagsApi = (data: createTagItf[]): PromiseRes =>
  request.post('/tag/create', data)

/**
 * 修改标签
 * @param data
 * @returns
 */
export const updateTagApi = (data: updateTagItf): PromiseRes =>
  request.post('/tag/update', data)

/**
 * 删除标签
 * @param id 标签id
 * @returns
 */
export const deleteTagApi = (id: string): PromiseRes =>
  request.delete(`/tag/delete/${id}`)
